﻿/*
 * 创建人：盛金龙
 * 时间：2011/12/27 周二
 * 用途：用户管理
 */
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace EnvironmentManagerSystem.sjl
{
    public partial class UserManager : System.Web.UI.Page
    {
        public Boolean isAdmin = true;
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
             //是否是管理员并操作isAdmin
             //Session["Admin"]
                BingGdvUser();
            }
        }

        /// <summary>
        /// 绑定用户列表
        /// </summary>
        public void BingGdvUser()
        {
            gdvUser.DataSource = EnvironmentManagerSystem.BLL.User.GetUser(isAdmin);
            gdvUser.DataBind();
        }
    }
}
